home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gedit.postinst < prev    next >
Text File  |  2009-10-20  |  1KB  |  45 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.         # register gedit as a gnome-text-editor in the alternatives system
  8.         update-alternatives \
  9.             --install \
  10.                 /usr/bin/gnome-text-editor \
  11.                 gnome-text-editor \
  12.                 /usr/bin/gedit \
  13.                 50 \
  14.             --slave \
  15.                 /usr/share/man/man1/gnome-text-editor.1.gz \
  16.                 gnome-text-editor.1.gz \
  17.                 /usr/share/man/man1/gedit.1.gz
  18.     ;;
  19.  
  20.     abort-upgrade|abort-remove|abort-deconfigure)
  21.     ;;
  22.  
  23.     *)
  24.         echo "postinst called with unknown argument \`$1'" >&2
  25.         exit 0
  26.     ;;
  27. esac
  28.  
  29. # Automatically added by dh_installmenu
  30. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  31.     update-menus
  32. fi
  33. # End automatically added section
  34. # Automatically added by dh_gconf
  35. if [ "$1" = "configure" ]; then
  36.     gconf-schemas --register gedit-file-browser.schemas gedit.schemas 
  37. fi
  38. # End automatically added section
  39. # Automatically added by dh_pysupport
  40. if which update-python-modules >/dev/null 2>&1; then
  41.     update-python-modules  gedit.private
  42. fi
  43. # End automatically added section
  44.  
  45.